// $codepro.audit.disable
import static org.junit.Assert.*;

import org.junit.Test;

/**
 * 
 */

/**
 * Test for the LookUp method in the Nurse class
 * @author Team 9
 *
 */
public class NurseLookUpTest {

	/**
	 * Test method for {@link Nurse#lookup(java.lang.String, java.lang.String)}.
	 */
	@Test
	public void testLookup() {
		Patient p1 = new Patient("Patient", "One", "patient", "one");
		Patient p2 = new Patient("Patient", "Two", "patient", "two");
		/*Doctor d1 = new Doctor("Doctor", "One", "doctor", "one");
		Admin a1 = new Admin("Admin", "One", "admin", "one");*/
		Gui.addToPatientArray(p1);
		Gui.addToPatientArray(p2);
		Nurse n1 = new Nurse("Nurse", "One", "nurse", "one");
		assertEquals(n1.lookup(p1.firstName, p1.lastName), 0);
		assertEquals(n1.lookup("Patient", "Three"), -2);
	}

}
